import request from '@/router/axios';
import {
  fenExYuangettoFixed, getAppealTypes, getIs_sup_payment,
  getLineName, getMappingStatus,
  getNoticeStates,
  getStationName, is_sup_payment,
  allStatus, noticeStates, getMappingStatusArray
} from "../../../../subwayRat/commonCheck";

/**
 * 列表
 * @param query
 */
export function get_other_SwAuConductorShortList(query) {
  return request({
    url: '/check/checkNew/getSwAuConductorShortList',
    method: 'post',
    params: query,
    data:query,
  })
}




export const shouPiaoYuanBKQRTZ_other_RYDLCK_option = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menu:false,
  menuAlign: 'center',
  viewBtn: false,
  editBtn: false,
  emptyBtn:false,
  delBtn: false,
  align: 'center',
  selection: true,
  reserveSelection:false,
  addBtn: false,
  height: 450,
  column: [
  // {
  //   fixed: true,
  //   label: '主键',
  //   prop: 'id',
  //   span: 24,
  //   hide: true
  // }, 
  {
    hide: false,
    label: '线路',
    prop: 'lineCode',
    type: 'select',
    search: true,
    searchslot:true,
    formatter: function(row, value , label, column){
  return getLineName(value);
}
  }, {
      hide: false,
      label: '站点',
      prop: 'stationCode',
      type: 'select',
      search: true,
      searchslot:true,
      formatter: function(row, value , label, column){
        return getStationName(row.lineCode,value);
      }
    },{
      label: '收入日期',
      prop: 'checkTime',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      width:160,
      formslot:true,
      cell: true,
      type: 'date',
      hide: false,
      search: false
    },{
      hide: false,
      label: '补款日期',
      prop: 'supPaymentTime',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      type:'date',
      search: false
    }, {
      label: '补款金额',
      prop: 'shortAmount',
      formatter:function(row, value , label, column){
        var num =value / 100;
        num = num.toFixed(2);
        return num;
      },
      search: false,
      hide: false,
      type:'input',
    }, {
      label: '补款人',
      prop: 'conductorPerson',
      search: true,
      searchslot: true,
      hide: false,
    }, {
      label: '补款人员工号',
      prop: 'conductorPersonCode',
      search: false,
      hide: false,
    }, {
      label: '是否补款',
      prop: 'isSupPayment',
      dicData:[{label:'未补款',value:0},{label:'已补款',value:1}],
      formatter:function(row, value , label, column){
        return value == 0?'未补款':'已补款';
      },
      type: 'select',
      search: true
    },{
      label: '是否确认',
      prop: 'confirmStatus',
      type:'select',
      search: false,
      dicData:getMappingStatusArray('extra_money_confirm'),
      formatter:function(row, value , label, column){
        return getMappingStatus('extra_money_confirm',value);
      },
      hide: true,
    },]
}
